package com.ttx.springmvc.example.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author TimFruit
 * @date 19-7-16 下午11:59
 */
@Api(value = "/home", tags="index模块")

@Controller
@RequestMapping("/home")
public class IndexController {

    @ApiOperation(value = "/index", notes = "index页面测试")
    @RequestMapping(value = "/index",method = RequestMethod.GET)
    public String index() {
        return "index";
    }
}